<?php
class IndexController extends Zend_Controller_Action
{
	
	public function init()
	{
		$ga = Zend_Registry::get("ga_account");
		
		$this->view->GoogleAnalytics($ga);
		
		/* Initialize action controller here */
	    if ($this->getRequest()->isXMLHttpRequest()) {
	        $this->_helper->layout()->setLayout('blank');
	        $logger = $this->getInvokeArg('bootstrap')->getResource('log');
	        if ($logger) {
	        	$logger->debug('AJAX Call');
	        }
	    }
	}
	
    public function indexAction()
    {
    	$this->_forward('wait');	 
    }
    
    public function waitAction()
    {
    	//temp: for wait page 
		$this->_helper->layout()->setLayout('wait');
    	$view = $this->view;
    	$view->headTitle(' - Coming Soon');
    	$view->headLink()->appendStylesheet($view->baseUrl("/css/wait.css"));
       
    }
    
}